.class Lcom/waiqin365/h5/photo/acty/c;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/widget/PopupWindow;

.field final synthetic b:Lcom/waiqin365/h5/photo/acty/b;


# direct methods
.method constructor <init>(Lcom/waiqin365/h5/photo/acty/b;Landroid/widget/PopupWindow;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/h5/photo/acty/c;->b:Lcom/waiqin365/h5/photo/acty/b;

    iput-object p2, p0, Lcom/waiqin365/h5/photo/acty/c;->a:Landroid/widget/PopupWindow;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/c;->a:Landroid/widget/PopupWindow;

    invoke-virtual {v0}, Landroid/widget/PopupWindow;->dismiss()V

    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/c;->b:Lcom/waiqin365/h5/photo/acty/b;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    invoke-static {v0}, Lcom/waiqin365/h5/photo/acty/a;->a(Lcom/waiqin365/h5/photo/acty/a;)Luk/co/senab/photoview/PhotoView;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/c;->b:Lcom/waiqin365/h5/photo/acty/b;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    invoke-static {v0}, Lcom/waiqin365/h5/photo/acty/a;->a(Lcom/waiqin365/h5/photo/acty/a;)Luk/co/senab/photoview/PhotoView;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Luk/co/senab/photoview/PhotoView;->setDrawingCacheEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/c;->b:Lcom/waiqin365/h5/photo/acty/b;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    iget-object v1, v0, Lcom/waiqin365/h5/photo/acty/a;->b:Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/c;->b:Lcom/waiqin365/h5/photo/acty/b;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    iget-object v2, v0, Lcom/waiqin365/h5/photo/acty/a;->b:Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/c;->b:Lcom/waiqin365/h5/photo/acty/b;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    invoke-static {v0}, Lcom/waiqin365/h5/photo/acty/a;->a(Lcom/waiqin365/h5/photo/acty/a;)Luk/co/senab/photoview/PhotoView;

    move-result-object v0

    invoke-virtual {v0}, Luk/co/senab/photoview/PhotoView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/BitmapDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-virtual {v1, v2, v0}, Lcom/waiqin365/h5/photo/acty/CameraPreviewActivity;->a(Landroid/content/Context;Landroid/graphics/Bitmap;)V

    iget-object v0, p0, Lcom/waiqin365/h5/photo/acty/c;->b:Lcom/waiqin365/h5/photo/acty/b;

    iget-object v0, v0, Lcom/waiqin365/h5/photo/acty/b;->a:Lcom/waiqin365/h5/photo/acty/a;

    invoke-static {v0}, Lcom/waiqin365/h5/photo/acty/a;->a(Lcom/waiqin365/h5/photo/acty/a;)Luk/co/senab/photoview/PhotoView;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Luk/co/senab/photoview/PhotoView;->setDrawingCacheEnabled(Z)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x7f0c0084
        :pswitch_0
    .end packed-switch
.end method
